8db7da84c7900f01e3503796ecc6a0c0d0b163a1,src/main/java/net/mcft/copy/backpacks/item/ItemBackpack.java,ItemBackpack,addInformation,#ItemStack#EntityPlayer#List#boolean#,62
Before Change
boolean equipAsChestArmor = WearableBackpacks.CONFIG.equipAsChestArmor.get();
// Display the equip hint. If the chestplate setting is off, use the
// extended tooltip, which also explains how to unequip the backpack.
LangUtils.formatTooltip(tooltip, "equipHint" + (!equipAsChestArmor ? ".extended" : ""));
// Maybe display open hint if backpacks are not equipped as chest armor.
if (!equipAsChestArmor) addOpenHintIfEnabled(tooltip);
}
After Change
@Override
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack stack, EntityPlayer playerIn, List<String> tooltip, boolean advanced) {
// If the shift key isn't being held down, display
// "Hold SHIFT for more info" message and return.
if (!LangUtils.tooltipIsShiftKeyDown(tooltip)) return;
IBackpack backpack = BackpackHelper.getBackpack(playerIn);
boolean isEquipped = ((backpack != null) && (backpack.getStack() == stack));
boolean equipAsChestArmor = WearableBackpacks.CONFIG.equipAsChestArmor.get();
boolean enableSelfInteraction = WearableBackpacks.CONFIG.enableSelfInteraction.get();
// If own backpacks can be interacted with while equipped and one is either
// currently equipped or won't be equipped as chest armor, display open hint.
// Does not display anything if key is unbound.
if (enableSelfInteraction && (isEquipped || !equipAsChestArmor))
LangUtils.formatTooltipKey(tooltip, "openHint", KeyBindingHandler.openBackpack);
// If the backpack is the player's currently equipped backpack, display unequip hint.
if (isEquipped) LangUtils.formatTooltip(tooltip, "unequipHint");
// If not equipped, display the equip hint. If equipAsChestArmor is off,
// use extended tooltip, which also explains how to unequip the backpack.
else LangUtils.formatTooltip(tooltip, "equipHint" + (!equipAsChestArmor ? ".extended" : ""));
// If someone's using the player's backpack, display it in the tooltip.
if (isEquipped && (backpack.getPlayersUsing() > 0))